package com.google.libgdxpractice;

import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.graphics.Texture;
import com.badlogic.gdx.graphics.g2d.TextureRegion;

public class Assets {
    
    public static Texture boxTexture;        
    public static TextureRegion boxRegion;
    
    public static Texture groundTexture;        
    public static TextureRegion groundRegion;
    
    public static Texture skyTexture;        
    public static TextureRegion skyRegion;
    
    public static Texture loadTexture(String file) {
    	return new Texture(Gdx.files.internal(file));
    }
    
    public static void load() {
    	boxTexture = loadTexture("data/box.png");
    	boxRegion = new TextureRegion(boxTexture, 0, 0, 128, 64);
    	
    	groundTexture = loadTexture("data/ground.png");
    	groundRegion = new TextureRegion(groundTexture, 0, 0, 480, 32);
    	
    	skyTexture = loadTexture("data/sky.png");
    	skyRegion = new TextureRegion(skyTexture, 0, 0, 480, 288);
    	
    }           
}
